Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment to crates.io #610

Merged
merged 10 commits into from
Nov 24, 2022
Merged

Deployment to crates.io #610

merged 10 commits into from
Nov 24, 2022

Conversation

jpraynaud
Copy link
Member

@jpraynaud jpraynaud commented Nov 23, 2022

Content

This PR implements the deployment of mithril-stm library to crates.io:

  • Rename lib name to mithril-stm
  • Implement crates.io packaging and publishing in the Release workflow

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

Authors

@Alenar
@jpraynaud

Issue(s)

Closes #588 / Relates to #500

@jpraynaud jpraynaud force-pushed the ensemble/588-deployment-crates.io branch from 7a7b364 to 9d782b2 Compare November 23, 2022 10:27
@github-actions
Copy link

github-actions bot commented Nov 23, 2022

Unit Test Results

    3 files  ±0    28 suites  ±0   2m 33s ⏱️ -55s
335 tests ±0  335 ✔️ ±0  0 💤 ±0  0 ±0 
388 runs  ±0  388 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 66d583b. ± Comparison against base commit 4c2fac1.

♻️ This comment has been updated with latest results.

@jpraynaud jpraynaud temporarily deployed to testing-preview November 23, 2022 10:50 Inactive
@jpraynaud jpraynaud temporarily deployed to testing-preview November 23, 2022 11:55 Inactive
@jpraynaud jpraynaud force-pushed the ensemble/588-deployment-crates.io branch 9 times, most recently from 6928392 to 721c55a Compare November 23, 2022 17:30
@jpraynaud jpraynaud marked this pull request as ready for review November 23, 2022 17:30
@jpraynaud jpraynaud force-pushed the ensemble/588-deployment-crates.io branch from 721c55a to 66d583b Compare November 23, 2022 17:38
@jpraynaud jpraynaud temporarily deployed to testing-preview November 23, 2022 17:44 Inactive
Copy link
Contributor

@iquerejeta iquerejeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Comment on lines +101 to +105
- name: Cargo publish dry run
uses: actions-rs/cargo@v1
with:
command: publish
args: -p mithril-stm --dry-run
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we running two times with --dry-run? With and without the token?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will remove the second --dry-run once we have a working CRATES_IO_API_TOKEN (we keep the dry-run to prevent the workflow from failing at this last step) 👍

Comment on lines -162 to -166
# ToDo list once we go public
- [ ] Upload mithril-core to crates.io
- [ ] Ensure that the badges are working
- [ ] Update links for crates and docs
- [ ] Error handling
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for removing this 👍

@jpraynaud jpraynaud merged commit 7178bf7 into main Nov 24, 2022
@jpraynaud jpraynaud deleted the ensemble/588-deployment-crates.io branch November 24, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activate deployment to crates.io
2 participants